﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ExportToRTR.YAML.RobotInstance
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Collections.Generic;
using YamlDotNet.Serialization;


namespace DnProcessSimulateCommands.ExportToRTR.YAML;

public class RobotInstance : IObjectInstance, IObj
{
  public string Name { get; set; }

  public string Model { get; set; }

  public string DefaultPreset { get; set; }

  public List<Preset> Presets { get; set; }

  [YamlIgnore]
  public RobotPrototype RobotPrototype { get; set; }

  [YamlIgnore]
  public List<JointSoftLimit> JointLimits { get; set; } = new List<JointSoftLimit>();

  [YamlIgnore]
  public Mate Mate { get; set; }

  public ObjectRef CreateObjectRef()
  {
    return new ObjectRef()
    {
      Robot = this.Name,
      Link = this.RobotPrototype.Links[0].Name,
      ObjRef = (IObj) this
    };
  }
}
